package com.yf.catcafe.mapper;

import com.yf.catcafe.pojo.enity.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MessagesMapper {

    @Select("select * from tb_message")
    List<Message> getMessages();

    void insertMessage(Message message);
}
